﻿using NetEasyMusic.Lib.Details;

namespace NetEasyMusic.Lib.Models;

public class SongWikiModel
{
    public ArtistModel[] Artists { get; set; } = [];
    public string Time { get; set; } = "";
    public string AlbumId { get; set; } = "";
    public string Album { get; set; } = "";
    public string Name { get; set; } = "";
    public string PicUrl { get; set; } = "";
    public string Lyric { get; set; } = "";
    public Comments Comments { get; set; } = new();
    public string PublishTime { get; set; } = "";
    public string Language { get; set; } = "";

    public void FormSong(SongModel model)
    {
        Time = model.Time;
        Album = model.Album;
        AlbumId = model.AlbumId;
        Name = model.Name;
        PicUrl = model.PicUrl;
        Artists = model.Artists;
    }

    public void FormSong(SongDetailModel model)
    {
        Lyric = model.Lyric;
        Comments = model.Comments;
    }
}